package lineSearch;

public class Student {
    private String name;

    public Student(String name) {
        this.name = name;
    }

    // 使用override关键字
    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null) return false;
        if (this.getClass() != obj.getClass()) return false;

        Student student = (Student) obj;
//        return student.name.equals(name);
        // ignore sth
        return student.name.toLowerCase().equals(name.toLowerCase());
    }
}
